package com.ryder.subject.application.convert;

import com.ryder.subject.application.dto.SubjectInfoDTO;
import com.ryder.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述: 题目DTO转换
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025/02/05
 */

@Mapper
public interface SubjectInfoDTOConvert {

    SubjectInfoDTOConvert INSTANCE = Mappers.getMapper(SubjectInfoDTOConvert.class);
    // DTO转BO
    SubjectInfoBO convertDtoToBo(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBoToDto(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoDTO> convertBoToDtoList(List<SubjectInfoBO> subjectInfoBOS);

}
